import request from '@/utils/request'

export function listequipmentFault(query) {
  return request({
    url: '/fault/equipmentFault/list',
    method: 'get',
    params: query
  })
}

export function createequipmentFault(data) {
  return request({
    url: '/fault/equipmentFault/create',
    method: 'post',
    data
  })
}

export function readequipmentFault(data) {
  return request({
    url: '/fault/equipmentFault/get/' + data.id,
    method: 'get'
  })
}

export function updateequipmentFault(data) {
  return request({
    url: '/fault/equipmentFault/update',
    method: 'post',
    data
  })
}

export function deleteequipmentFault(data) {
  return request({
    url: '/fault/equipmentFault/delete',
    method: 'post',
    data
  })
}
